package cn.gson.oasys.service.AoaDiscussList;

import cn.gson.oasys.mapper.AoaDiscussListMapper;
import cn.gson.oasys.pojo.AoaDiscussList;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by Administrator on 2020/12/4.
 */
@Service
public class AoaDiscussListService {
    @Resource
    private AoaDiscussListMapper mapper;

    /*
    *获取讨论区所有列表 王义
    * */
    public List<AoaDiscussList> getAllDiscussList(){
        return mapper.selectAllDiscussList();
    }

    /*
    * 根据标题获取讨论列表   王义
    * */
    public List<AoaDiscussList> getAllDiscuss(String title){
        return mapper.selectAllDiscuss(title);
    }



}
